package com.diandi.ddsb.vo;


import com.diandi.activity.bean.BorrowTypes;
import com.diandi.ddsb.bean.AccessPortEnum;

/**
 * 
 * 投资活动统计VO
 * 
 * @author liuxu
 * @since 2016年12月30日
 *
 */
public class InvestActStasticsInfoVo implements java.io.Serializable {
	private static final long serialVersionUID = 7260825862436109353L;

	/**
	 * ID(ticket_use_detail 主键)
	 */
	private Long id;

	/**
	 * 用户id
	 */
	private Long userId;

	/**
	 * 手机号
	 */
	private String mobilePhone;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 投资端
	 */
	private Integer accessPort;

	private String accessPortName;

	/**
	 * 标的类型
	 */
	private Integer investType;

	private String investTypeName;

	/**
	 * 投资期限
	 */
	private String periods;

	/**
	 * 投资金额
	 */
	private Double amount;

	/**
	 * 奖券类型
	 */
	private Integer type;

	private String typeName;

	/**
	 * 奖券id
	 */
	private Long ticketId;

	/**
	 * 发放时间
	 */
	private String createTime;

	private Double ticketAmount;
	
	private Integer isInPackage;

	private String tradeNo;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getAccessPort() {
		return accessPort;
	}

	public void setAccessPort(Integer accessPort) {
		this.accessPort = accessPort;
	}

	public Integer getInvestType() {
		return investType;
	}

	public void setInvestType(Integer investType) {
		this.investType = investType;
	}

	public String getPeriods() {
		return periods;
	}

	public void setPeriods(String periods) {
		this.periods = periods;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getTicketId() {
		return ticketId;
	}

	public void setTicketId(Long ticketId) {
		this.ticketId = ticketId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getAccessPortName() {
		if(this.accessPort ==null)
			return "";
		if(AccessPortEnum.getByType(this.accessPort)==null)
			return "";
		return AccessPortEnum.getByType(this.accessPort).name();
	}

	public void setAccessPortName(String accessPortName) {
		this.accessPortName = accessPortName;
	}

	public String getTypeName() {
		if(this.type == null)
			return "";
		if(LotteryTicketType.getTextByValue(this.type)==null)
			return "";
		return LotteryTicketType.getTextByValue(this.type).getText();
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getInvestTypeName() {
		if(this.investType ==null)
			return "";
		if(BorrowTypes.getTextByValue(this.investType)==null)
			return "";
		return BorrowTypes.getTextByValue((this.investType)).getText();
	}

	public void setInvestTypeName(String investTypeName) {
		this.investTypeName = investTypeName;
	}

	public Double getTicketAmount() {
		return ticketAmount;
	}

	public void setTicketAmount(Double ticketAmount) {
		this.ticketAmount = ticketAmount;
	}

	public Integer getIsInPackage() {
		return isInPackage;
	}

	public void setIsInPackage(Integer isInPackage) {
		this.isInPackage = isInPackage;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	
}
